package com.hyz.user.feign.fallback;

import com.hyz.common.pojo.Order;
import com.hyz.user.feign.OrderApi;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class OrderFeignFallback implements OrderApi {
    @Override
    public List<Order> findOrderByUserId(String username) {
        ArrayList<Order> orders = new ArrayList<>();
        Order order = new Order();
        order.setId("-1");
        order.setUsername("活动太过火爆");

        orders.add(order);
        return orders;
    }
}
